#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void sort(int* arr, int n)
{
	int *p = arr;
	int i = 0;
	int j = 0;
	for (i = 0; i < n; i++)
	{
		int a = 1;
		for (j = 0; j < n - 1 - i; j++)
		{
			if (*(p+j) > *(p+j+1))
			{
				int middle = *(p+j);
				*(p + j) = *(p + j + 1);
				*(p + j + 1) = middle;
				a = 0;
			}

		}
		if (a == 1)
		{
			break;
		}
	}
}

int main()
{
	int arr[100] = { 0 };
	int n = 0;
	scanf("%d", &n);
	int i = 0;
	for (i = 0; i < n; i++)
	{
		scanf("%d", &arr[i]);
	}
	sort(arr, n);
	for (i = 0; i < n; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}